package com.javaoopfive;

public class Test1 {
    public static void main(String[] args) {

        Object object = new Object();
        object.equals("");

        String string=new String("admin");
        String string1=new String("admin");
        System.out.println(string.equals(string1));

        Dog dog = new Dog();
        Dog dog1 = new Dog();
        dog.setName("lisi1");
        dog1.setName("lisi");
        System.out.println(dog.equals(dog1));
    }
}
